#include <stdio.h>
#include <jsonlib.h>

int main(int argc, char** argv)
{
    char jstr[] = "{\"hello\":\"world\"}";
    printf("JSON:%s\n",jstr);

    char fieldbuf[32];
    int c = jlib_parse_field(jstr,"hello",fieldbuf,sizeof(fieldbuf));
    if(0 == c){
        printf("parsed 'hello' field:  %s\n",fieldbuf);
        printf("Test Run Successful !!! ");
    }

    return 0;
}